﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpCommonEdit.h"
#include "IObject.h"

namespace gcmp
{
    class IElement;
    class UniIdentity;

    /// \brief 交互事件参数接口基类
    class GCMP_COMMON_EDIT_EXPORT IInteractionEventArgs : public IObject
    {
        DEFINE_CAST_DERIVED(IInteractionEventArgs, IObject)
    public:
        /// \brief 获取事件关联的Element的实现类别Uid
        ///
        /// \return UniIdentity Element实现类别的Uid
        virtual const UniIdentity& GetElementImplementationUid() const = 0;

        /// \brief 获取事件关联的Element
        ///
        /// \return 事件关联的Element
        virtual IElement* GetElement() = 0;

        /// \brief 获取交互事件的类型Id
        ///
        /// \return 交互事件类型Id
        virtual const std::wstring& GetEventTypeId() const = 0;
    };
}